package utils;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘国水
 * Date: 2025-04-02
 * Time: 17:03
 */
public class ScannerSingleton {
    private static Scanner scanner;
    private ScannerSingleton() {
    }
    public static Scanner getInstance() {
        if (scanner == null) {
            scanner = new Scanner(System.in);
        }
        return scanner;
    }
}
